package com.example.demo;


import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.util.StringUtils;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {

        String[] disabledCommands = {
                "--spring.shell.command.clear.enabled=false" ,
                "--spring.shell.command.help.enabled=false" ,
                "--spring.shell.command.history.enabled=false" ,
                "--spring.shell.command.quit.enabled=false",
                "--spring.shell.command.script.enabled=false" ,
                "--spring.shell.command.stacktrace.enabled=false"
        };
        String[] fullArgs = StringUtils.concatenateStringArrays(args, disabledCommands);

        SpringApplication app = new SpringApplication(DemoApplication.class);
        app.setBannerMode(Banner.Mode.OFF);
//		app.setWebApplicationType(WebApplicationType.NONE);
        app.run(fullArgs);
    }

}

